#ifndef __CONSTANT_H__
#define __CONSTANT_H__
#include <malloc.h>


/* return value */
#define BS_ERROR 		-1
#define BS_OK			0
#define BS_SUCCESS		1

/* length */
#define LEN8	8
#define LEN16	16
#define LEN32	32
#define LEN64	64
#define LEN128	128
#define LEN256	256
#define LEN512	512
#define LEN1024	1024
#define LEN2048 2048
#define LEN4096 4096


/* function */
#define SAFE_FREE(x) do { if (x) free(x); } while(0)


/* http method */
#define METHOD_GET		"GET"
#define METHOD_POST		"POST"

#endif //__CONSTANT_H__